/**
                   _ooOoo_
                  o8888888o
                  88" . "88
                  (| -_- |)
                  O\  =  /O
               ____/`---'\____
             .'  \\|     |//  `.
            /  \\|||  :  |||//  \
           /  _||||| -:- |||||-  \
           |   | \\\  -  /// |   |
           | \_|  ''\---/''  |   |
           \  .-\__  `-;// ___/-. /
         ___`. .'  /--.--\  `. . __
      ."" '<  `.___\_<|>_/___.'  >'"".
     | | :  `- \`.;`\ _ /`;.`/ - ;//: | |
     \  \ `-.   \_ __\ /__ _/   .-;///  /
======`-.____`-.___\_____/___.-`____.-'======
                   `=---='
                                     佛祖保佑       永无BUG
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
	Copyright (c) 2016,  email:14902300@qq.com All Rights Reserved. 
*/
package com.fclassroom.logger.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author jason
 * @date 2016 2016年7月26日 下午4:13:21
 */
public class LogRLogin implements Serializable {
	private Long id;  //BIGINT(20) NOT NULL AUTO_INCREMENT,
	private Integer appCategory;  //INT(11) NULL DEFAULT NULL COMMENT '业务系统：10，教师端；20，学生端；30，家长端业务 ',
	private Integer appType;  //INT(11) NULL DEFAULT NULL COMMENT '业务类型：11教师客户端；12教师安卓；13教师iOS；21学生安卓；22学生iOS；31家长微信',
	private String appVersion;  //VARCHAR(20) NULL DEFAULT NULL COMMENT '系统版本',
	private Long userId;  //BIGINT(20) NULL DEFAULT NULL COMMENT '用户ID，登录成功后有',
	private String userName;  //VARCHAR(255) NULL DEFAULT NULL COMMENT '用户姓名',
	private String userIp;  //VARCHAR(255) NULL DEFAULT NULL COMMENT '用户IP',
	private String userToken;
	private String userAgent;  //VARCHAR(255) NULL DEFAULT NULL COMMENT '操作人使用环境，浏览器|操作系统等',
	private Integer status;  //VARCHAR(255) NULL DEFAULT NULL COMMENT '0，登录失败；1，登录成功',
	private Date createTime;  //DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
	
	public LogRLogin(OperaterLog operaterLog){
		this.appCategory=operaterLog.getAppCategory();
		this.appType=operaterLog.getAppType();
		this.appVersion=operaterLog.getAppVersion();
		this.userId=operaterLog.getUserId();
		this.userName=operaterLog.getUserName();
		this.userAgent=operaterLog.getContent();
		this.userIp=operaterLog.getUserIp();
		this.status=operaterLog.getOperateStatus();
		//this.userToken=operaterLog.getContent();
	}
	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * @return the appCategory
	 */
	public Integer getAppCategory() {
		return appCategory;
	}
	/**
	 * @param appCategory the appCategory to set
	 */
	public void setAppCategory(Integer appCategory) {
		this.appCategory = appCategory;
	}
	/**
	 * @return the appType
	 */
	public Integer getAppType() {
		return appType;
	}
	/**
	 * @param appType the appType to set
	 */
	public void setAppType(Integer appType) {
		this.appType = appType;
	}
	/**
	 * @return the appVersion
	 */
	public String getAppVersion() {
		return appVersion;
	}
	/**
	 * @param appVersion the appVersion to set
	 */
	public void setAppVersion(String appVersion) {
		this.appVersion = appVersion;
	}
	/**
	 * @return the userId
	 */
	public Long getUserId() {
		return userId;
	}
	/**
	 * @param userId the userId to set
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	/**
	 * @return the userName
	 */
	public String getUserName() {
		return userName;
	}
	/**
	 * @param userName the userName to set
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}
	/**
	 * @return the userIp
	 */
	public String getUserIp() {
		return userIp;
	}
	/**
	 * @param userIp the userIp to set
	 */
	public void setUserIp(String userIp) {
		this.userIp = userIp;
	}
	/**
	 * @return the userAgent
	 */
	public String getUserAgent() {
		return userAgent;
	}
	/**
	 * @param userAgent the userAgent to set
	 */
	public void setUserAgent(String userAgent) {
		this.userAgent = userAgent;
	}
	/**
	 * @return the status
	 */
	public Integer getStatus() {
		return status;
	}
	/**
	 * @param status the status to set
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}
	/**
	 * @return the createTime
	 */
	public Date getCreateTime() {
		return createTime;
	}
	/**
	 * @param createTime the createTime to set
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * @return the userToken
	 */
	public String getUserToken() {
		return userToken;
	}
	/**
	 * @param userToken the userToken to set
	 */
	public void setUserToken(String userToken) {
		this.userToken = userToken;
	}
	
	
	
}
